import { Component, OnInit, Input,Output,EventEmitter, OnChanges, SimpleChanges,ViewChild, TemplateRef } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';

@Component({
  selector: 'app-slo',
  templateUrl: './slo.component.html',
  styleUrls: ['./slo.component.scss']
})
export class SloComponent implements OnInit {

  constructor(private notification: NzNotificationService) { }

  @Output()  private  outer=new EventEmitter();
  @Input() msgData:any; 

  ngOnInit() {
  }

  @ViewChild('msgTemplate') msgTemplate: TemplateRef<{}>; 
  createBasicNotification(template: TemplateRef<{}>): void {
    this.notification.template(this.msgTemplate,{ nzDuration: 30000 });
  }

}
